home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / CNetDemo / cnet / sdk / include / doors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-04  |  790 b   |  31 lines

  1.  
  2. #ifndef CNET_DOORS
  3. #define CNET_DOORS
  4.  
  5. #define CN_USERINPUT 0xff        // Message send to doors when user keyboard input
  6.                                  // is waiting.
  7.                                  // see SignalInputInit() in empty.c 
  8.  
  9. struct CPort {                        // setup when a C pfile is ran
  10.     struct    MsgPort  mport;    // 0
  11.     short    align;
  12.     struct    MainPort *myp;        // 36 pointer to MainPort
  13.     struct    PortData *zp;        // 40 pointer to my PortData
  14.  
  15.     UBYTE    ack;                        // 44 tell CNet we've arrived
  16.     UBYTE    align2[3];
  17. };
  18.  
  19. struct CMessage {                        // passed between C pfile and C-Net
  20.     struct    Message cn_Message;    // 0 communication stuff
  21.     ULONG    arg1;                            // 20
  22.     ULONG    arg2;
  23.     ULONG    arg3;
  24.     ULONG    arg4;
  25.     ULONG    result;
  26.     UBYTE    command;                        // 40 which command? see CNet Programmer's Reference Manual
  27.     UBYTE    align[3];
  28. };
  29.  
  30. #endif
  31.